package com.jah.picavue.client.events;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.json.client.JSONObject;

public class GotAlbumFeedEvent extends GwtEvent<GotAlbumFeedEvent.Handler> {

	public interface Handler extends EventHandler {
		public void onGotAlbumFeed(GotAlbumFeedEvent evt);
	}

	@Override
	protected void dispatch(GotAlbumFeedEvent.Handler handler) {
		handler.onGotAlbumFeed(this);
	}

	@Override
	public GwtEvent.Type<GotAlbumFeedEvent.Handler> getAssociatedType() {
		return TYPE;
	}

	public static final GwtEvent.Type<GotAlbumFeedEvent.Handler> TYPE = new GwtEvent.Type<GotAlbumFeedEvent.Handler>();

	private JSONObject albumfeed;

	public JSONObject getFeed() {
		return albumfeed;
	}

	public void setFeed(JSONObject feed) {
		this.albumfeed = feed;
	}
}
